// Login form
$(document).ready(function() {
	// Login Div
	$("a.login").click(function(){
		$("#userinfo").animate({opacity: 0.95, height:'toggle'}, 2000, function() {
    		// Animation complete.
    	});
    	return false;
	});
	if(jQuery("#login_form")){
		jQuery("#login_form").validate({
			submitHandler: function(form) {
				$(form).ajaxForm({
					success: function(data){
						if(data.status=="success"){

						}
						else{
							alert(data.messages);
						}
					},
					dataType: 'json'});
				return false;
			}
		});
	}
});